package  
{
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author The Greatest Gatsby
	 */
	public class Enemy extends ColoredSprite 
	{
		[Embed(source = "../res/greenEnemy.png")] public var greenEnemy:Class;
		[Embed(source = "../res/blueEnemy.png")] public var blueEnemy:Class;
		[Embed(source = "../res/yellowEnemy.png")] public var yellowEnemy:Class;

		public function Enemy(X:Number=0,Y:Number=0,color:Color=null) 
		{
			if (color!=null)
			{
				gameplayColor = color;
			}
			else 
			{
				gameplayColor = new Color();
			}
			
			var enemySprite:Class;
			if (gameplayColor.color == 0)
			{
				 enemySprite = greenEnemy;
			}
			else if (gameplayColor.color == 1)
			{
				enemySprite = blueEnemy;
			}
			else 
			{
				enemySprite = yellowEnemy;
			}
			super(X, Y, enemySprite);
		}	
		
		
	}

}